package cn.itcast.zt;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.time.LocalDateTime;

@SpringBootApplication
public class Spring52LastestApplication implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(Spring52LastestApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        int a = 1 ;
        // int b = a << 1 >> 1 ; // 表明未被改变
        int b = a << 7 ;

        System.out.println("b is: "+b);

        int second = LocalDateTime.now().getSecond() ;
        int data = 27 & 63 ;
        System.out.println("ses: " +second+ ",compute: " +(data));
    }
}
